import request from '@/utils/request'

export const listTVaccin = (search) =>
    request({
        url: '/tVaccinNote',
        method: 'get',
        params: {
            offset: search.offset,
            limit: search.limit,
            name: search.name
        }
    })

export const listTVaccinDept = (search) =>
request({
    url: '/tVaccinNote/queryAllTVaccinDept',
    method: 'get',
    params: {
        offset: search.offset,
        limit: search.limit,
        name: search.name
    }
})
//查询所有的分类
/*  export const listTMealsType = () =>
    request({
        url: '/tMealsType',
        method: 'get'
    })*/

  export const getTVaccinById = (id) =>
    request({
      url: '/tVaccinNote/' + id,
      method: 'get'
    })

  export const saveTVaccin = (evaluate) =>
    request({
      url: '/tVaccinNote',
      method: 'post',
      data: evaluate
    })
export const updateTVaccin = (id, evaluate) =>
    request({
      url: '/tVaccinNote/' + id,
      method: 'put',
      data: evaluate
    })

export const removeTVaccin = (id) =>
  request({
      url: '/tVaccinNote/' + id,
      method: 'delete'
  })
